﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace simplewebcms.Core.DomainObjects
{
    public class CMSSite
    {
        /// <summary>
        /// The name of this site.  
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// When the site was created.
        /// </summary>
        public DateTime CreatedOn { get; set; }

        /// <summary>
        /// When the site was last changed.
        /// </summary>
        public DateTime LastChangedOn { get; set; }

        /// <summary>
        /// The base url of the site like 'http://www.mydomain.com'.
        /// </summary>
        public Uri BaseUrl { get; set; }

        /// <summary>
        /// Home page of the wweb site.
        /// </summary>
        public CMSPage HomePage { get; set; }

        List<CMSLayout> _layouts = null;
        /// <summary>
        /// A collections of available layouts for the sites.
        /// </summary>
        public List<CMSLayout> Layouts
        {
            get
            {
                if (_layouts == null) _layouts = new List<CMSLayout>();
                return _layouts;
            }
        }
    }
}
